proxy () { 
  export http_proxy="http://127.0.0.1:1081"
  export https_proxy="https://127.0.0.1:1081"
  export HTTP_PROXY="http://127.0.0.1:1081"
  export HTTPS_PROXY="https://127.0.0.1:1081"
  export ALL_PROXY="socks://127.0.0.1:1089"
  export all_proxy="socks://127.0.0.1:1089"
  echo -e "Acquire::http::Proxy \"http://127.0.0.1:1081\";" | sudo tee -a /etc/apt/apt.conf > /dev/null
  echo -e "Acquire::https::Proxy \"http://127.0.0.1:1081\";" | sudo tee -a /etc/apt/apt.conf > /dev/null
  #curl https://ip.gs
}

noproxy () {
  echo "noproxy"
  unset ALL_PROXY
  unset all_proxy
  unset http_proxy
  unset https_proxy
  unset HTTP_PROXY
  unset HTTPS_PROXY
  sudo sed -i -e '/Acquire::http::Proxy/d' /etc/apt/apt.conf
  sudo sed -i -e '/Acquire::https::Proxy/d' /etc/apt/apt.conf
  #curl https://ip.gs
}